# 安装EF Core工具（如果尚未安装）
dotnet tool install --global dotnet-ef

# 添加迁移
dotnet ef migrations add InitialCreate --project ContentmanagementBase.Infrastructure --startup-project ContentmanagementBaseRead.API

# 更新数据库
dotnet ef database update --project ContentmanagementBase.Infrastructure --startup-project ContentmanagementBaseRead.API 